package com.scoring.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.scoring.system.mapper.ExaminationTypeMapper;
import com.scoring.system.pojo.ExaminationType;
import com.scoring.system.service.ExaminationTypeService;
@Service("examinationTypeService")
public class ExaminationTypeServiceImpl implements ExaminationTypeService {
	
	@Resource
	private ExaminationTypeMapper etDao;

	@Override
	public int deleteExaminationType(int id) {
		return etDao.deleteByPrimaryKey(id);
	}

	@Override
	public int saveExaminationType(ExaminationType record) {
		return etDao.insert(record);
	}

	@Override
	public ExaminationType getExaminationTypeById(int id) {
		return etDao.selectByPrimaryKey(id);
	}

	@Override
	public List<ExaminationType> listExaminationType() {
		return etDao.listExminationType();
	}

	@Override
	public int updateExaminationType(ExaminationType record) {
		return etDao.updateByPrimaryKey(record);
	}

}
